package com.feiluan.config.mqtt;

/**
 * 一键求助
 *
 * @author yye
 *
 */
public abstract class MQTTOneButtonHelpPublishConfig {


	protected final String broker = "a1xvSZIu8Pg.iot-as-mqtt.cn-shanghai.aliyuncs.com";
	protected final int qos = 0;

	protected Boolean hasSSL = false;

	protected Integer port = 1883;
	protected final String userName = "IGY4WwQ0DiLnKJk3ioHz&a1xvSZIu8Pg";
	protected final String password = "5CDE18EF8C1C860888C37E699C7D5B3B9BAD0971";
	protected final String TCP = "tcp://";
	protected final String SSL = "ssl://";

	public static final String topic = "/sys/a1xvSZIu8Pg/IGY4WwQ0DiLnKJk3ioHz/thing/event/property/post";

	/**
	 * Custom Configuration
	 *
	 * @param broker
	 * @param port
	 * @param ssl
	 * @param withUserNamePass
	 */
	protected abstract void config(String broker, Integer port, Boolean ssl, Boolean withUserNamePass);

	/**
	 * Default Configuration
	 */
	protected abstract void config();
}
